package com.itheima.config;

import org.springframework.context.annotation.*;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.RestController;

//声明Spring配置类 (添加到IOC容器中)
@Configuration
@ComponentScan({"com.itheima.service","com.itheima.aspect"})
@PropertySource("classpath:jdbc.properties")
//导入JdbcConfig配置类
@Import({JdbcConfig.class,MyBatisConfig.class})
//启动声明式事务
@EnableTransactionManagement
//开启AOP注解
@EnableAspectJAutoProxy
public class SpringConfig {
}





